@import '../../../../common/style/mixin.less';

.wrap {
  width: 360px;
  padding: 24px 32px 32px;
  position: absolute;
  right: 0;
  top: 32px;
  bottom: 0;
  // background: @second_color;
  z-index: 1;
  color: #ffffff;
  text-align: left;
  height: ~'calc(100vh - 50px) ';
  overflow: auto;
  &::-webkit-scrollbar {
    width: 5px;
    /*background-color:rgba(0, 0, 0, 0.1);*/
  }
  &::-webkit-scrollbar-thumb {
    border-radius: 8px;
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
    background-color: rgba(255, 255, 255, 0.12);
  }

  .title {
    position: relative;
    height: 22px;
    font-size: 16px;
    font-weight: bold;
    color: #ffff;
    line-height: 22px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    margin-bottom: 4px;
  }
}

.item {
  width: 140px;
  &::after {
    display: block;
    content: '';
    clear: both;
  }
  &R {
    float: left;
  }
  &L {
    float: left;
  }
}

.time {
  line-height: 32px;
  margin-bottom: 16px;
  &Item {
    display: inline-block;
    width: 24px;
    height: 32px;
    line-height: 32px;
    background: rgba(#fff, 0.1);
    text-align: center;
    margin-right: 8px;
  }

  &Spliter {
    display: inline-block;
    margin-right: 8px;
    color: rgba(#fff, 0.3);
  }
}

.topPanel {
  padding-top: 20px;
  padding-left: 14px;
  &L {
    float: left;
    width: 122px;
    margin-right: 10px;
  }
  &R {
    float: left;
    width: 204px;
  }
  &Text {
    display: flex;
    justify-content: space-between;
    text-align: left;
    font-size: 12px;

    color: rgba(#fff, 0.5);
    color: #2fb0ff;
    margin-bottom: 8px;
    &L {
      color: rgba(#fff, 1);
      padding-right: 6px;
    }
  }
  &::after {
    display: block;
    content: '';
    clear: both;
  }
}

.baseInfo {
  .title {
    position: relative;
    color: #2fb0ff;
    line-height: 24px;
    margin: 8px;
    margin-left: 0;
    margin-right: 22px;
    padding: 16px;
    background: rgba(#ffffff, 0.04);
    margin-bottom: 40px;
    &::before {
      position: absolute;
      top: -20px;
      left: 0;
      content: url('../../../../common/images/边框纹样-上.png');
    }
    &::after {
      position: absolute;
      left: 0;
      bottom: -20px;
      content: url('../../../../common/images/边框纹样-下.png');
    }
  }
  p {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
    padding-right: 20px;
    line-height: 37px;
    border-bottom: 1px solid rgba(#fff, 0.1);
    margin-bottom: 0;
  }
  p:first-child {
    font-size: 18px;
    font-family: AlibabaPuHuiTi-Medium, AlibabaPuHuiTi;
  }
  p:last-child {
    margin-bottom: 0;
  }
  &Text {
    // color: rgba(#ffff, 0.5);
    padding-left: 4px;
    color: #2fb0ff;
  }
  &Location {
    font-size: 12px;
    color: #2fb0ff;
    margin-left: 16px;
    img {
      position: relative;
      top: -2px;
      width: 14px;
      margin-right: 8px;
    }
  }
}

.autoHeightPanel {
  max-height: calc(100vh - 806px);
  padding-left: 24px;
  padding-top: 22px;
  overflow-y: auto;
  .beautify-scrollbar();
}

.wbsSection {
  margin-bottom: 20px;
  .title {
    width: 130px;
    color: rgba(#ffffff, 0.65);
    span {
      color: rgba(#ffffff, 0.3);
      font-size: 12px;
    }
  }
  .num {
    width: 65px;
    font-size: 18px;
    font-family: AlibabaPuHuiTi-Bold, AlibabaPuHuiTi;
    font-weight: bold;
    color: #ffffff;

    span {
      color: rgba(#ffffff, 0.3);
      font-size: 12px;
    }
  }

  .bar {
    width: 120px;
  }

  .row {
    display: flex;
    justify-content: space-between;
    position: relative;
    height: 38px;
    line-height: 38px;
    border-bottom: 2px dashed rgba(#fff, 0.12);
    margin-right: 16px;
    &::after {
      position: absolute;
      bottom: -2px;
      left: 0;
      display: block;
      content: '';
      width: 8px;
      height: 2px;
      background: rgba(#ffffff, 0.45);
    }
  }
}

.scrollBlock {
  // height: 178px;
  height: calc(100vh - 822px);
  // height: 200px;
  overflow-y: auto;
  .beautify-scrollbar();
}

.bodyTag {
  padding-top: 16px;
  color: #ffffff;
  font-weight: bold;
}

.peopleInfo {
  margin-top: 6px;
  position: relative;
  // width: 392px;

  .deviceStateWrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 0 16px;
    .deviceStateItemWrap {
      padding-bottom: 16px;
      border-bottom: 1px dashed rgba(255, 255, 255, 0.12);
      margin-top: 16px;

      .deviceStateItem {
        width: 180px;

        .deviceStateTitle {
          display: flex;
          align-items: center;

          .nameNumber {
            font-size: 16px;
            margin-left: 8px;
            color: #2fb0ff;
          }
        }

        .deviceStateContent {
          display: flex;
          align-items: center;
          margin-top: 8px;

          div {
            width: 50%;

            .deviceStateContentName {
              color: @text-color-65;
              margin-right: 8px;
            }

            .deviceStateContentValue {
              color: rgba(61, 255, 185, 1);
            }

            .deviceStateContentValue1 {
              color: rgba(255, 255, 255, 1);
            }
          }
        }

        .deviceChart {
          display: flex;
          align-items: center;
          width: 169px;
          height: 8px;
          margin-top: 8px;

          .deviceChartL {
            background: linear-gradient(
              270deg,
              rgba(255, 255, 255, 0.2) 0%,
              rgba(255, 255, 255, 0.08) 100%
            );
            border-right: 2px solid rgba(61, 255, 185, 1);
            height: 8px;
          }

          .deviceChartR {
            height: 8px;
            background-color: rgba(255, 255, 255, 0.08);
          }
        }
      }
    }

    .deviceStateItemWrap:nth-child(odd) {
      .deviceStateItem {
        border-right: 1px solid rgba(255, 255, 255, 0.12);
      }
    }

    .deviceStateItemWrap:nth-child(even) {
      .deviceStateItem {
        padding-left: 14px;
      }
    }

    .deviceStateItemWrap:nth-last-child(2),
    deviceStateItemWrap:nth-last-child(1) {
      padding-bottom: 30px;
      border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    }
  }

  ul {
    display: flex;
    flex-wrap: wrap;
    padding-left: 0;
    list-style: none;
    font-size: 12px;
    color: rgba(#ffffff, 0.8);

    li {
      display: inline-block;
      width: 186px;
      padding-left: 18px;
      line-height: 20px;
      font-size: 12px;
    }
  }

  .title {
    padding-left: 24px;
    margin-bottom: 0;

    a {
      color: #ffffff;
      font-size: 16px;
    }

    &Btn {
      float: right;
      margin-right: 24px;
      // font-size: 12px;
      font-size: 14px;
      color: rgba(#ffffff, 0.7);
      cursor: pointer;
    }
  }

  .legendExtra {
    // position: absolute;
    // right: 0;
    // top: 64px;
    // width: 88px;
    font-size: 16px;
    font-weight: 500;
    color: #ffffff;
    display: flex;
    flex-wrap: wrap;
    margin-right: 24px;
    margin-left: 10px;
    li {
      display: inline-flex;
      width: 50%;
      line-height: 22px;
      justify-content: space-between;
      p {
        display: inline-block;
      }
      span {
        display: inline-block;
        width: 6px;
        height: 6px;
        margin-right: 10px;
      }
    }
  }

  .chartBg {
    position: relative;
    background: url('./images/人员管理-边框样式.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    margin-left: 24px;
    margin-right: 24px;
    .img {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translateX(-50%) translateY(-50%);
      width: 72px;
      height: 72px;
      background: rgba(#ffffff, 0.04);
      border-radius: 50%;
      background-image: url('./images/人员管理.png');
      background-position: center;
      background-repeat: no-repeat;
    }
  }
}

.autoHeightPanel2 {
  max-height: calc(100vh - 530px);
  // max-height: calc(100vh - 636px);
  // padding-left: 24px;
  // padding-top: 22px;
  overflow-y: auto;
  .beautify-scrollbar();
}
